package webservice.client;

import java.net.MalformedURLException;

import org.codehaus.xfire.XFire;
import org.codehaus.xfire.XFireFactory;
import org.codehaus.xfire.client.XFireProxyFactory;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.service.binding.ObjectServiceFactory;

import com.chinark.imanager.bi.company.webservice.CompanyMemberWebService;


public class ClientTest {
	
	public static void main(String[] args) {
		Service serviceModel = new ObjectServiceFactory()
				.create(CompanyMemberWebService.class);
		XFire xfire = XFireFactory.newInstance().getXFire();
		XFireProxyFactory factory = new XFireProxyFactory(xfire);
		String serviceUrl = "http://localhost:8080/bi/services/companyMemberWebService";
		CompanyMemberWebService client = null;
		try {
			client = (CompanyMemberWebService) factory.create(serviceModel, serviceUrl);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
//		client.updateMemberFlag("", 3);
		System.out.println("----------------");

	}

}
